import api from "@/utils/api";

// 功能点检列表
export const getFunctionCheckList = (data) => {
	return api({
		url: "/deviceSpotCheck/list",
		method: "post",
		data,
	});
};

// 精度点检列表
export const getAccuracyCheckList = (data) => {
	return api({
		url: "/precision/areaList",
		method: "post",
		data,
	});
};

// 关闭点检
export const checkClose = (data) => {
	return api({
		url: "/wom/close",
		method: "post",
		data,
	});
};

// 点检详情
export const checkDetail = (data) => {
	return api({
		url: "/precision/areaGroupList",
		method: "post",
		data,
	});
};

// 点检详情最终
export const checkDetailInfo = (data) => {
	return api({
		url: "/precision/areaGroupInfo",
		method: "post",
		data,
	});
};


// 暂存点检
export const checkTemporaryStorage = (data) => {
	return api({
		url: "/wom/storage",
		method: "post",
		data,
	});
};

// 提交点检
export const checkSubmit = (data) => {
	return api({
		url: "/wom/submission",
		method: "post",
		data,
	});
};

// 设备点检列表
export const getDeviceCheckList = (data) => {
	return api({
		url: "/deviceInspect/list",
		method: "post",
		data,
	});
};

// 设备点检详情
export const getDeviceCheckDetail = (data) => {
	return api({
		url: "/deviceInspect/info",
		method: "post",
		data,
	});
};


// 设备点检详情-条件查询
export const getDeviceInspect = (data) => {
	return api({
		url: "/deviceInspect/task",
		method: "post",
		data,
	});
};
// 设备点检详情-保存
export const submitDevicetask = (data) => {
	return api({
		url: "/deviceInspect/taskSubmit",
		method: "post",
		data,
	});
};

//设备点检签名-保存
export const submitDevicesign = (data) => {
	return api({
		url: "/deviceInspect/signatureSubmit",
		method: "post",
		data,
	});
};

// 设备点检提交
export const submitDeviceCheck = (data) => {
	return api({
		url: "/deviceInspect/submit",
		method: "post",
		data,
	});
};

// 设备功能看板-投用率
export const getUtilizationRateArea = (data) => {
	return api({
		url: "/deviceFunctionDashboard/getUtilizationRateArea",
		method: "post",
		data,
	});
};
// 设备功能看板-条线投用率
export const getUtilizationRateLineArea = (data) => {
	return api({
		url: "/deviceFunctionDashboard/getUtilizationRateLineArea",
		method: "post",
		data,
	});
};

// 设备功能看板-功能异常
export const getFuncAnomaly = (data) => {
	return api({
		url: "/deviceFunctionDashboard/getFuncAnomaly",
		method: "post",
		data,
	});
};

// 设备功能看板-异常趋势
export const getAnomalyTrend = (data) => {
	return api({
		url: "/deviceFunctionDashboard/getAnomalyTrend",
		method: "post",
		data,
	});
};

//设备看板日*项/月-区域接口
export const getRYXArealist = (data) => {
	return api({
		url: "/overdueProblemStatistics/list",
		method: "get",
		data,
	});
};

//设备看板投用率-区域接口
export const getTYLArealist = (data) => {
	return api({
		url: "/deviceFunctionDashboard/getHealthScoreChartCondition",
		method: "post",
		data,
	});
};

//设备看板日*项/月-月统计接口
export const tableStatistics = (data) => {
	return api({
		url: "/overdueProblemStatistics/table_statistics",
		method: "post",
		data,
	});
};
//设备看板日*项/月-柱状图接口
export const barChartAnalysis = (data) => {
	return api({
		url: "/overdueProblemStatistics/bar_chart_analysis",
		method: "post",
		data,
	});
};

//设备得分看板-逾期数量
export const overdueStatistics = (data) => {
	return api({
		url: "/overdueProblemStatistics/overdueStatistics",
		method: "post",
		data,
	});
};

//设备得分看板-逾期折线图
export const queryAndStatistics = (data) => {
	return api({
		url: "/overdueProblemStatistics/queryAndStatistics",
		method: "post",
		data,
	});
};

//设备得分看板-健康度评分
export const getHealthScoreDaily = (data) => {
	return api({
		url: "/deviceFunctionDashboard/getHealthScoreDaily",
		method: "post",
		data,
	});
};

//设备得分看板-健康度评分折线图
export const getUtilizationRateChart = (data) => {
	return api({
		url: "/deviceFunctionDashboard/getUtilizationRateChart",
		method: "post",
		data,
	});
};

//日事日毕率-健康度评分
export const dailyTaskFinishCard = (data) => {
	return api({
		url: "/dailyTaskFinishRateBoard/card",
		method: "post",
		data,
	});
};

//日事日毕率-区域弹框数据
export const chartTassoGiornalieroCondition = (data) => {
	return api({
		url: "dailyTaskFinishRateBoard/chartTassoGiornalieroCondition",
		method: "post",
		data,
	});
};
//日事日毕率-健康度评分折线图
export const chartTassoGiornaliero = (data) => {
	return api({
		url: "/dailyTaskFinishRateBoard/chartTassoGiornaliero",
		method: "post",
		data,
	});
};

//日事日毕率-健康度评分点检异常折线图
export const chartErrCount = (data) => {
	return api({
		url: "/dailyTaskFinishRateBoard/chartErrCount",
		method: "post",
		data,
	});
};

//日事日毕率-健康度评分整改异常折线图
export const chartModificaCount = (data) => {
	return api({
		url: "/dailyTaskFinishRateBoard/chartModificaCount",
		method: "post",
		data,
	});
};